<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            grid-template-rows: 100px 100px 100px;
        }

        .container>.item1>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .item1 {
            background-color: blue;
            /* grid-column: 1/4; */
        }

        .item2 {
            background-color: red;
        }

        .item3 {
            background-color: green;
        }

        .item4 {
            background-color: orange;
        }

        .item5 {
            background-color: purple;
        }

        .item6 {
            background-color: skyblue;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="item1">
            <img src="1.png">
        </div>
        <div class="item2">2</div>
        <div class="item3">3</div>
        <div class="item4">4</div>
        <div class="item5">5</div>
        <div class="item6">6</div>
    </div>

</body>

</html>